/*
 * @ProjectName: 编程学习
 * @Copyright:   2019 HangZhou Ashe Dev, Ltd. All Right Reserved.
 * @address:     https://yiyuery.github.io/NoteBooks/
 * @date:        2020/3/5 10:41 下午
 * @description: 本内容仅限于编程技术学习使用，转发请注明出处.
 */
package com.yi.yier.boot.autoconfigure.codegenerator.api.base.condition;

import com.yi.yier.boot.autoconfigure.codegenerator.api.base.interfaces.ICondition;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Yiyuery
 * @version V1.0.0
 * @date 2020/3/5 10:41 下午
 * @modificationHistory=========================逻辑或功能性重大变更记录
 * @modify By: {修改人}  2020/3/5
 * @modify reason: {方法名}:{原因}
 * ...
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class BaseCondition implements ICondition {
    /**
     * 条件集合
     */
    private List<ConditionOption> conditions = new ArrayList<>();

    @Override
    public ICondition append(ConditionOption condition) {
        conditions.add(condition);
        return this;
    }
}
